Android ContentResolver
cursor.columnNamesをdebugでみた。
query関数で sqlでのselectを発行する。対象をURI, 項目、where, whereパラメータ、sort code: contentResolver_query.java
ContentResolver.query(
Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
In operatorで便利かも。
getColumnNames()
cursor.getString(fieldIndex) みたいにして値を取る、面倒だな..
重要なのは、_id, _size, _display_name,
0 = "_id"
1 = "_data"
2 = "_size"
3 = "_display_name"
4 = "mime_type"
5 = "title"
6 = "date_added"
7 = "is_hdr"
8 = "date_modified"
9 = "description"
10 = "picasa_id"
11 = "isprivate"
12 = "latitude"
13 = "longitude"
14 = "datetaken"
15 = "orientation"
16 = "mini_thumb_magic"
17 = "bucket_id"
18 = "bucket_display_name"
19 = "width"
20 = "height"
21 = "is_hw_privacy"
22 = "hw_voice_offset"
23 = "is_hw_favorite"
24 = "hw_image_refocus"
25 = "album_sort_index"
26 = "bucket_display_name_alias"
27 = "is_hw_burst"
28 = "hw_rectify_offset"
29 = "special_file_type"
30 = "special_file_offset"
31 = "cam_perception"